package com.hygj.sitemesh;

import org.sitemesh.builder.SiteMeshFilterBuilder;
import org.sitemesh.config.ConfigurableSiteMeshFilter;

/**
 * 网页布局和修饰的框架
 * @author Administrator
 *
 */
public class MySiteMeshFilter extends ConfigurableSiteMeshFilter {

	@Override
	protected void applyCustomConfiguration(SiteMeshFilterBuilder builder) {

		String template = "";
		String adminPath = "/";
		builder
				// 后台
				.addDecoratorPath(adminPath + "*", template + "/main.jsp")
				.addExcludedPath("/checkLogin")	//除去checkLogin
				.addExcludedPath("/logout")//除去logout
				.addExcludedPath("/login.jsp")//除去login.jsp
				.addExcludedPath("/unauthorized.jsp")//除去login.jsp
		        .addExcludedPath("/calendar.jsp");

	}

}
